﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DARE
{
    public class CRingEmitterData : CEmitterData
    {
        public float Ray { get; set; }
        public bool EdgeSpawn { get; set; }

        public override void FillDataStructure(object e)
        {
            AEmitter emitter = e as AEmitter;
            base.FillDataStructure(emitter);
            Ray = (emitter as CRingEmitter).Ray;
            EdgeSpawn = (emitter as CRingEmitter).EdgeSpawn;
        }

        public override void FillFromDataStructure(out object e, params object[] paramsData)
        {
            base.FillFromDataStructure(out e);
            AEmitter emitter = e as AEmitter;
            (emitter as CRingEmitter).Ray = Ray;
            (emitter as CRingEmitter).EdgeSpawn = EdgeSpawn;
        }

        public override AEmitter CreateEmitter()
        {
            return new CRingEmitter(Name);
        }
    }
}
